import React, { useState } from 'react'
import { Table, Button } from 'antd'
export default () => {

    const columns:any = [
        {
            title: '短信名称',
            dataIndex: 'name',
            key: 'name',
            render: (text: any) => <a>{text}</a>,
        },
        {
            title: '描述',
            dataIndex: 'age',
            key: 'age',
            width:"850px"
        },
        {
            title: '状态',
            dataIndex: 'address',
            key: 'address',
        },
        {
            title: '操作',
            align: "center",
            width: "240px",
            render: (text: any, record: any) => (
                <Button size="small" onClick={() => {

                }} >配置</Button>
            ),
        },
    ];

    const data = [
        {
            key: '1',
            name: '阿里云短信',
            age: "阿里云短信服务（Short Message Service）支持国内和国际快速发送验证码、短信通知和推广短信，服务范围覆盖全球200多个国家和地区。国内短信支持三网合一专属通道，与工信部携号转网平台实时互联",
            address: '关闭',
            tags: '2018',
        },
    ];


    return (
        <Table columns={columns} dataSource={data} pagination={false}  />
    )
}